<template>
  <div class="small-tip">
    <div class="small-tip-main">
      {{ tipMessage }}
    </div>
  </div>
</template>

<script>
export default {
  props: {
    tipMessage: {
      type: String,
      default: () => "操作提示",
    },
  },
};
</script>

<style>
.small-tip {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1020;
}
.small-tip-main {
  padding: 15px 30px;
  font-size: 16px;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 10px;
}
</style>